package com.example.base_mvvm.money;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import androidx.room.Update;

@Dao
public interface MoneyDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    void insert(Money money);

    @Delete()
    void delete(Money money);

    @Update()
    void update(Money money);

    @Query("select * from money where username=:username")
    Money query(String username);

}
